﻿@using Abp.Extensions
@using Akso.Entities
@using Akso.Web.Areas.Mpa.Models.Common.Modals
@model Akso.Web.Areas.BasicDataModule.Models.Classrooms.CreateOrEditClassroomModalViewModel
@Html.Partial("~/Areas/Mpa/Views/Common/Modals/_ModalHeader.cshtml", new ModalHeaderViewModel(Model.IsEditMode ? (L("Pages_BasicDataModule_Classrooms_Edit") + ": " + Model.Classroom.ClassroomName) : L("Pages_BasicDataModule_Classrooms_Create")))
<div class="modal-body">

    <form name="ObjectForm" role="form" novalidate class="form-validation">

        @if (Model.IsEditMode)
        {
            <input type="hidden" name="Id" value="@Model.Classroom.Id" />
        }

        <div class="form-group form-md-line-input form-md-floating-label no-hint">
            <input type="text" name="ClassroomName" value="@Model.Classroom.ClassroomName" class="form-control edited" required maxlength="@ClassroomEntity.MaxNameLength" />
            <label>@L("Page_BasicDataModule_Classrooms_GridColumn_Name")</label>
        </div>
        <div class="form-group form-md-line-input form-md-floating-label no-hint">
            <input type="text" name="Galleryful" value="@Model.Classroom.Galleryful" class="form-control edited" required maxlength=4 />
            <label>@L("Pages_BasicDataModule_Classrooms_GridColumn_Galleryful")</label>
        </div>
        <div class="form-group form-md-line-input form-md-floating-label no-hint">
            <input type="text" name="Remark" value="@Model.Classroom.Remark" class="form-control edited" maxlength="@ClassroomEntity.MaxRemarkLength" />
            <label>@L("Pages_BasicDataModule_Classrooms_GridColumn_Remark")</label>
        </div>

        

    </form>

</div>

@Html.Partial("~/Areas/Mpa/Views/Common/Modals/_ModalFooterWithSaveAndCancel.cshtml")